//
//  TouchView.m
//  03_UIResponder
//
//  Created by li cheng on 16/7/18.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView

// APPDelegate UIView
// UIRsponder
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    // 如果写了继承,那么父类也能有感觉
    [super touchesBegan:touches withEvent:event];
    NSLog(@"self.view = %@", self.nextResponder);
    NSLog(@"ViewController = %@", self.nextResponder.nextResponder);
    NSLog(@"window = %@", self.nextResponder.nextResponder.nextResponder);
    NSLog(@"UIAPPlication = %@", self.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"APPdelegate = %@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"还有什么,%@",self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
    
    
    
    
    NSLog(@"%@----------------%s", [self class], __FUNCTION__);
    
}


- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    NSLog(@"%@----------------%s", [self class], __FUNCTION__);

}


- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    NSLog(@"%@----------------%s", [self class], __FUNCTION__);
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
